package com.edunera.connection;

import android.content.Context;
import com.edunera.R;
import com.edunera.models.edu_courses;
import org.json.JSONArray;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Soyhan
 * Date: 12.06.2013
 * Time: 21:52
 * To change this template use File | Settings | File Templates.
 */
public abstract class TaskGetCourses extends BaseTask {

    String userDeviceId;
    public boolean isConnected;
    public List<edu_courses> edu_coursesList;
    public TaskGetCourses(Context context, String userDeviceId) {
        super(context, R.string.loading);
        this.userDeviceId = userDeviceId;
    }



    @Override
    public void doTask() {
        this.edu_coursesList=edu_courses.getCoursesByUserId(userDeviceId);
    }

    @Override
    public abstract void onComplete();

}